@import url("font-awesome.css");
/* 勿动 */
:root {
	--mycolor:#8e49e8;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	width: 100vw;
	height: 100vh;
	background: linear-gradient(to bottom , #68eacc 20%,#497be8 80%);
}

.container {
	margin: 120px auto;
	max-width: 400px;
	width: 100%;
	background-color: white;
	border-radius: 5px;
	padding: 25px;
}

.container header {
	font-size: 30px;
	font-weight: bold;
}

.container .inputField {
	display: flex;
	height: 45px;
	width: 100%;
	margin: 20px 0;
}

.inputField input {
	width: 82%;
	height: 100%;
	border: 1px solid #ccc;
	font-size: 17px;
	border-radius: 3px;
	padding-left: 15px;
}

.inputField button {
	width: 60px;
	height: 100%;
	border: none;
	outline: none;
	background-color: var(--mycolor);
	color: white;
	font-size: 22px;
	cursor: pointer;
	border-radius: 3px;
	margin-left: 5px;
}

.container .todoList {
	max-height: 250px;
	overflow-y: auto;
}

.todoList li {
	list-style: none;
	height: 45px;
	line-height: 45px;
	position: relative;
	background: #f2f2f2;
	border-radius: 3px;
	margin-bottom: 8px;
	padding: 0 15px;
	overflow: hidden;
	cursor: default;
}

.todoList li span {
	position: absolute;
	right: -45px;
	color: #fff;
	width: 45px;
	text-align: center;
	background-color: #e74c3c;
	cursor: pointer;
	transition: .3s;
}

.todoList li:hover  {
	color: var(--mycolor);
}

.todoList li:hover span { 
	right: 0;
}

.container .footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	margin-top: 20px;
}

.footer button {
	border: none;
	outline: none;
	background: var(--mycolor);
	font-size: 16px;
	cursor: pointer;
	border-radius: 3px;
	padding: 6px 10px;
	color: white;
}